#ifndef _NetworkThread
#define _NetworkThread

#include <process.h>	// _beginthread
#include <algorithm>
#include <string>
#include "NetworkManager.h"


namespace tlnet {

struct NetworkThreadStruct {
	NetworkManager *nm;
	Connection *conn;
};

//void NetworkThread(void*);
unsigned __stdcall NetworkThread(void* /*param*/);

void NetworkThreadListen(NetworkManager* /*nm*/, Connection* /*conn*/);
void NetworkThreadSocket(NetworkManager* /*nm*/, Connection* /*conn*/);

}

#endif // _NetworkThread